<!DOCTYPE html>
<html lang="zh-CN">
<body>
<script th:src="@{/common/js/jquery-3.2.1.min.js}" type="text/javascript"></script>
</body>
</html>
<script type="text/javascript">
 /*<![CDATA[*/
	    
 	$(function(){
 		demo();
 	});

function demo(){
// 	var name = /*[[${name}]]*/     
	var name = getQueryString("name");   
//     name = mini.decode(name);
//     var mainMenu = $("#mainMenu", window.parent.document);
//     console.log(mainMenu);
      var mt3 = $(".menu-title",window.parent.parent.document);
      mt3.each(function(index){
        var check = $(this).find(".menu-text").text();
            if(name == check){
            	 console.log(mt3[index]);
            	 mt3[index].click();
            }
        
    });
}
function getQueryString(name){
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return decodeURI(r[2]); return null;
}
 /*]]>*/
 </script>